<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>组合键</title>
</head>
<body>
	<script type="text/javascript">
	window.onkeydown =function(e)
	{
		// console.log(e);

		if(e.key =='g'&&e.ctrlKey == true){
			alert('第一招:玫粉色唔');
		}
		if(e.key =='s' && e.altKey ==true ){
			alert('2');
		}
		if(e.key=='R' && e.shift.Key ==true){
			alert('3');
		}
		if(e.key == 'T' && e.ctrlKey &&e.altKey &&e.shiftKey){
			alert('终极大招');
		}

	}

	</script>
	
</body>
</html>